/* Copyright (c) 2024 Qualcomm Technologies International, Ltd. */
/* %%version */


#ifndef ID3V2_PARSER_DEBUG_H_
#define ID3V2_PARSER_DEBUG_H_

#include "lea_logging.h"

#define LEA_AUDIO_ID3V2_PARSER_LOG_ENABLE 0x04000000

#if (defined(LEA_AUDIO_ID3V2_PARSER_LOG_ENABLE) && defined(LEA_LOG_MASK) && (LEA_AUDIO_ID3V2_PARSER_LOG_ENABLE & LEA_LOG_MASK))

#define ID3V2_PARSER_INFO(...)  CSR_LOG_TEXT_INFO((CsrBtId3v2Lto, 0, __VA_ARGS__))
#define ID3V2_PARSER_DEBUG(...)  CSR_LOG_TEXT_WARNING((CsrBtId3v2Lto, 0, __VA_ARGS__))
#define ID3V2_PARSER_ERROR(...)  CSR_LOG_TEXT_ERROR((CsrBtId3v2Lto, 0, __VA_ARGS__))
#define ID3V2_PARSER_PANIC(...)  {CSR_LOG_TEXT_ERROR((CsrBtId3v2Lto, 0, __VA_ARGS__)); CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#else

#define ID3V2_PARSER_INFO(...)
#define ID3V2_PARSER_DEBUG(...)
#define ID3V2_PARSER_ERROR(...)
#define ID3V2_PARSER_PANIC(...)  {CsrPanic(CSR_TECH_BT, CSR_BT_PANIC_MYSTERY, __VA_ARGS__);}

#endif

#endif /* ID3V2_PARSER_PARSER_DEBUG_H_ */
